function check_domain_init(){
	_s = {
		host: location.hostname.toLowerCase(),
		domains: [{"d":"sxyxjy.net","e":1367193600},{"d":"ktake.com","e":1357603200},{"d":"vigorelectronic.com","e":1352764800},{"d":"mrasong.com","e":1382140800},{"d":"msxylia.com","e":1382227200},{"d":"mrasong.net","e":1353715200},{"d":"mranning.com","e":1369094400},{"d":"theui.info","e":1369745285},{"d":"theui.org","e":1369745257},{"d":"theui.net","e":1356652800},{"d":"uiui.in","e":1355981951},{"d":"com.svn","e":1355981951}],
		warn: ["域名 <b style='color:#666666'>[","mrasong.com","]</b> 即将过期，请联系 <b style='color:#666666'>[","QQ:137441068","]</b> 续费！"],
		notice: ["domain:[ ","mrasong.com"," ],Expiration Date:[ ","2012-12-21"," ]."],
		remind: 10*24*60*60, /** 10天提示 */
		nowtime: Math.ceil(new Date().getTime()/1000),
		contact: ["email:support@theui.net","QQ:137441068"],
		url: ["theui.net","theui.org","theui.info"],
		name: "TheUI Team",
		since: "2011-2012"
	};
	document.writeln('<div style="margin:5px 10px;padding:3px; text-align:center; color:#999999;font-family:\'Comic Sans MS\',\'Microsoft YaHei\',Arial,Tahoma,Sans-Serif;font-size:12px;clear:both;">');
	document.writeln('  <span style="float:left;" id="domain_expr_tips"></span>');
	document.writeln('  <span style="float:right;">Designed by ');
	document.writeln('    <a target="_blank" style="color:#BBBBBB;text-decoration:none;" title="'+_s.url.join("|")+'" href="http://'+_s.url[0]+'/"><em>'+_s.name+'</em></a>');
	document.writeln('	&copy; '+_s.since+' All rights reserved.</span>');
	document.writeln('  <span style="clear:both;"></span>');
	document.writeln('</div>');
	for(i=0; i<_s.domains.length; i++){
		if( _s.host.substr(_s.host.length - _s.domains[i].d.length) == _s.domains[i].d){//exist domain
			if( (_s.domains[i].e - _s.nowtime) < _s.remind ){
				_s.warn[1] = _s.domains[i].d;
				_s.warn[3] = _s.contact[0];
				var tips_html =  _s.warn.join("");
			}else{
				var d = new Date();
				d.setTime(_s.domains[i].e*1000);
				_s.notice[1] = _s.domains[i].d;
				_s.notice[3] = d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
				var tips_html =  _s.notice.join("");
				document.getElementById("domain_expr_tips").style.color = "#999999";
			}
			document.getElementById("domain_expr_tips").innerHTML = tips_html;
		}
	}
}
check_domain_init();

